package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.NoticeCoverResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块通知车主数量的接口request
 */
public class NoticeCoverData extends CarpoolBaseData<NoticeCoverResponse>{

    private String orderNo; //必传得订单编号

    public NoticeCoverData(Context context) {
        super(context);
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_NOTICE_COVER);
    }

    @Override
    protected Map<String, String> getParams() {
        HashMap<String, String> params = new HashMap<String, String>();
        params.put("orderNo", orderNo);
        return params;
    }
}
